package clas.ac.cn.common.config;

import org.springframework.core.MethodParameter;
import org.springframework.web.context.request.NativeWebRequest;
import org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver;

/**
 * 自定义参数绑定
 * @author z
 */

public class CommonRequestArgumentResolver extends AbstractNamedValueMethodArgumentResolver {


    @Override
    @SuppressWarnings("all")
    protected NamedValueInfo createNamedValueInfo(MethodParameter methodParameter) {

        return new NamedValueInfo("", true, "");
    }

    @Override
    @SuppressWarnings("all")
    protected Object resolveName(String s, MethodParameter methodParameter, NativeWebRequest nativeWebRequest) throws Exception {

        return null;
    }

    @Override
    @SuppressWarnings("all")
    public boolean supportsParameter(MethodParameter methodParameter) {
        return false;
    }
}
